package com.xbongbong.sso.model.impl;

import com.xbongbong.sso.domain.dao.XbbUserDao;
import com.xbongbong.sso.domain.entity.XbbUserEntity;
import com.xbongbong.sso.model.XbbUserModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author kaka
 * @date 2018-8-28 14:23
 */
@Service("xbbUserModel")
public class XbbUserModelImpl implements XbbUserModel {

    private static final Logger LOG = LoggerFactory.getLogger(XbbUserModelImpl.class);

    @Resource
    private XbbUserDao xbbUserDao;
    @Override
    public List<XbbUserEntity> findEntitys(Map<String, Object> param) {
        return xbbUserDao.findEntitys(param);
    }

    @Override
    public XbbUserEntity getByUserId(String corpid, String userId) {
        return xbbUserDao.getByUserId(corpid, userId);
    }
}
